#include "call_log_global.h"

VOID Framework_App_Register_Req(If_Framework_Reg_Info_t *RegInfo)
{
}

VOID Framework_CallLog_Missed_Call_Read_Ind()
{
}

VOID Call_Framework_Voice_Call_Req(INT8 *Number)
{
}

VOID Call_Send_Sms_Req(char *Number, char *Message)
{
}

VOID Contacts_Save_Contact_Req(UINT16 SrcActId, INT8 *Number)
{
}

VOID Contacts_Add_Num_To_Scrn_List_Req(UINT16 SrcActId, INT8 *Number)
{
}

VOID Call_Log_Test_Main(VOID)
{
    /* init common UI */
    UI_Common_Test_Main();

    /* init hal */
    Hal_Init();

    /* init call log*/
    CallLog_Framework_Init_Req();

    /* add call log */
    UINT16 Cnt = 0;
    for (UINT16 i = 0; i < Cnt; i++)
    {
        Log = (NV_Call_Log_Data_t *)Hal_Mem_Alloc(sizeof(NV_Call_Log_Data_t));
        Hal_Mem_Set(Log, 0, sizeof(NV_Call_Log_Data_t));

        Log->Type      = (i % 4 > 0) ? (i % 4) : 1;             // CALL_LOG_TYPE_MISSED
        Log->SimId     = i % 2;                                 // MMI_MODEM_SIM_1
        Log->Timestamp = UI_Get_Timestamp_In_Second() - i * 60; // time(NULL)
        Log->Duration  = i * 30;
        sprintf(Log->Number, "%02d", i);
        sprintf(Log->Name, "name_%02d", i);

        CallLog_Call_Add_Log(Log);
    }

    /* display UI */
    Call_Log_Main();
}
